home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cserial
/
printer.h
< prev
next >
Wrap
Text File
|
1990-04-04
|
1KB
|
37 lines
/*
* PRINTER.H
*
* Written for the
*
* Datalight
* Microsoft V 5.x
* TurboC
* &
* Zortech
*
* C Compilers
*
* Copyright (c) John Birchfield 1987, 1988, 1989
*
* Output a character to the printer port using software interrupt
* 0x17. Returns !0 if unsuccessful, 0 otherwise.
*
* Usage while (print_char (ch));
*/
#define PR_SELECTED 0x90
/*
* flag returned 7 6 5 4 3 2 1 0
* | | | | | | | |------- Time out
* | | | | | | |---------
* | | | | | |-----------
* | | | | |------------- IO error
* | | | |--------------- Selected
* | | |----------------- Out of paper
* | |-------------------
* |--------------------- Busy
*/
int print_char (char);